/******************************************************************
 *
 * 	Programmer:		Brandon Shouse
 * 	Class:			CS362-400
 * 	Assignment:		Assignment 3
 *
 * 	Description: Card unit test for the great hall card card
 *
 *****************************************************************/

#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int main() 
{
	struct gameState state;
	int numPlayer = 2;
	int p, r, i, test, test2, handPos, choice1, choice2, choice3, bonus;
	int seed = 1000;
	int k[10] = {adventurer, council_room, feast, gardens, mine, 
		remodel, smithy, village, baron, great_hall};

	memset(&state, 23, sizeof(struct gameState));
	r = initializeGame(numPlayer, k, seed, &state);

	printf("Testing Great Hall Card,,,\n");
	test = numHandCards(&state);
	cardEffect(k[9], choice1, choice2, choice3, &state, handPos, &bonus);
	p = numHandCards(&state);
	assert(test == p);

	printf("\tNumber of cards: Passed\n");
	test = cardEffect(k[9], choice1, choice2, choice3, &state, handPos, &bonus);
	assert(test == 0);

	printf("\tReturn value: Passed\n");
	printf("Great hall card passed all tests\n");

	return 0;
}
